
// include jquery v1.3.1
include_css('http://localhost/namelink_code/style/namelink.css');
include_js('http://localhost/namelink_code/javascript/jquery.js');
include_js('http://localhost/namelink_code/javascript/namelink_library.js');
include_js('http://localhost/namelink_code/javascript/nametag.js');

var name_search_api_prefix = "http://localhost/namelink_code/doc/name_lookup_service.php";
var index_of_next_tag = 0;
var waiting_on_index = null;

var markit_api_prefix = "http://localhost/namelink_code/doc/nametag_service.php";



// dynamically include external javascript
function include_js(location)
{
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.src = location;
    
    var head = document.getElementsByTagName('head')[0];
    head.appendChild(script);
}

// dynamically include external javascript
function include_css(location)
{
    var link = document.createElement('link');
    link.type = 'text/css';
    link.rel = 'stylesheet';
    link.media = 'screen';
    link.href = location;
    
    var head = document.getElementsByTagName('head')[0];
    head.appendChild(link);
}